<?php
//=========================
//Vuong Van Binh
//Wanbin@vietnambiz.com
//Send message process
//=========================	
include ADMIN_INCLUDE_DIR."/header.php";
send_message()
?>
<div class="container_l">
		<div class="title_user"><img src="images/icon1.gif" />Gửi tin nhắn</div>
		<div class="table_user">
			<div class="table_user_in2">
			<?php 
					show_error(); 
					show_success(); 
			?>
				
				<form action="" method="post">
                                    <fieldset>
					<div class="lineaddnew">
						<div class="lineform">
						    <div class="divlabel">Tới Quản trị viên: <font color="#FF0000">*</font></div>
							<div class="divlabe2">&nbsp;
								<select name="user_list" id="user_list" multiple="multiple" style="height:120px; width:218px;">
							<?php
							
								$rs = get_all_user(intval($_SESSION['adlogin']["id"]));
								while($user=$db->fetch_array($rs)){
									 
									    echo "<option value='".$user["id"]."'>".$user["username"]."</option>";
								}
							?>
							</select>
							</div>
							<div class="boxbutton_add">
								<input type="button" name="" value=">>" onclick="listbox_moveOptions('user_list','user_list_send'); return false;" /><br />
								<input type="button" name="" value="<<" onclick="listbox_moveOptions('user_list_send','user_list');return false;" />
							</div>
							<div class="divlabe2">
								<select size="10" name="user_list_send[]" id="user_list_send" multiple="multiple" style="width:218px;height:120px;">
								
								</select>
							</div>
							
							
						</div>
						<div class="lineform">
							<div class="divlabel">Tiêu đề: <font color="#FF0000">*</font></div>
							<div class="divform"><input type="text" name="title" value="" /></div>
						</div>
						<div class="lineform">
							<div class="divlabel">Nội dung: <font color="#FF0000">*</font></div>
							<div class="divform"><textarea name="content" id="content" rows="10"></textarea> </div>
						</div>
						
						
						
						<div class="spacer1"><span></span></div>
					</div>
					<div class="spacer1"><span></span></div>
				</fieldset>
				
				<div class="linesubmit">
					<input type="hidden" name="send" value="okie" />
					<input type="submit" name="send" value="Gửi" class="button" onclick="listbox_selectall('user_list_send','true');" />
                                        <input type="button" name="exit" value="Thoát" class="button" onclick="javascript:history.go(-1);" />
				</div>
			</form>
				
			</div>
		</div>
	</div>
<?php
include "inc/right.php"; 
include ADMIN_INCLUDE_DIR."/footer.php"; 
?>